/**
 *
 * @description:tab切换
 * @author:junyong.hong
 * @createTime:2017/12/7
 * @version:1.0.0.0
 * @history:
 *    1、
 *    2、
 *
 */
define([
    'angularAMD',
    'config'
], function (angularAMD, app) {
    app.provider('otherTemplateRouter', function ($stateProvider, $urlRouterProvider) {

        this.$get = function () {
            var service, CURRENT_PATH = 'components/module/otherTemplate/';

            service = {
                'setRouter': function () {
                    $stateProvider
                        //state.includes案例
                        .state('index.slider', angularAMD.route({
                            url:'/slider',
                            templateUrl:CURRENT_PATH + 'slider/slider.html',
                            controllerAs:'VM',
                            controllerUrl:CURRENT_PATH + 'slider/slider.controller.js',
                            controller:'slider.controller'
                        }))
                }
            };
            return service;
        }
    }).run(function (otherTemplateRouter) {
        otherTemplateRouter.setRouter();
    });
});
